package com.coco.user.service;

import com.coco.common.result.CommonResponse;
import com.coco.common.result.ResultData;
import com.coco.user.pojo.TbUser;
import com.coco.user.vo.UserLoginVo;
import com.coco.user.vo.UserRegisterVo;
import com.coco.user.vo.UserSearchVo;

import java.util.List;

public interface UserService {

    List<TbUser> userList();

    void add(TbUser user);

    void update(TbUser user);

    void deleteById(Long id);

    TbUser findOne(Long id);

    ResultData findAllSearch(UserSearchVo userSearchVo);

    CommonResponse register(UserRegisterVo userRegisterVo);

    void getCode(String phone);

    CommonResponse dologin(UserLoginVo loginVo);
}
